Skip to content

The pyntc rotating file handler is now opt-in#383

Merged
jeffkala merged 2 commits intodevelopfrom
NCSAT-27/log-file
May 6, 2026
Merged

The pyntc rotating file handler is now opt-in#383
jeffkala merged 2 commits intodevelopfrom
NCSAT-27/log-file

Conversation

@gsnider2195
Copy link
Copy Markdown
Contributor

The pyntc rotating file handler is now opt-in via the PYNTC_LOG_FILE environment variable.

…` environment variable. When unset, no log file is created. When set, its value is used as the log file path, and the handler is registered only once per logger to avoid duplicate entries on repeated `get_log` calls.
Comment thread pyntc/log.py
@jeffkala jeffkala merged commit 43f1188 into develop May 6, 2026
10 checks passed
@gsnider2195 gsnider2195 mentioned this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants